package com.yesjpt.domain;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

@Data
public class User implements Serializable {
	private static final long serialVersionUID = 1L;
	private String id;
    private String username;
    private String nickname;
    private String password;
    private String websocketSessionId;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date onlineTime;
}
